import request from '../utils/request'

// 获取商品分类列表
export const getCategoryListApi = async () => {
    return await request.get('/api/products/categories')
}

// 根据分类获取商品列表
export const getProductsByCategoryApi = async (category) => {
    return await request.get(`/api/products/category/${category}`)
}